projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05dad1e
)
(etags_getcwd, absolute_filename) [DOS_NT]: Canonicalize
author
Geoff Voelker
<voelker@cs.washington.edu>
Fri, 22 Jan 1999 19:38:51 +0000
(19:38 +0000)
committer
Geoff Voelker
<voelker@cs.washington.edu>
Fri, 22 Jan 1999 19:38:51 +0000
(19:38 +0000)
the case of the drive letter.
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index b838d90b636b94ee90d0082805dbc572b30b6611..a1059e334d156f650bb7461f2893c61bd24adf72 100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-4664,6
+4664,9
@@
etags_getcwd ()
for (p = path; *p != '\0'; p++)
if (*p == '\\')
*p = '/';
+ /* Canonicalize drive letter case. */
+ if (islower (path[0]))
+ path[0] = toupper (path[0]);
}
#endif
@@
-4790,6
+4793,12
@@
absolute_filename (file, cwd)
slashp = etags_strchr (slashp + 1, '/');
}
+
+#ifdef DOS_NT
+ /* Canonicalize drive letter case. */
+ if (res[0] && islower (res[0]))
+ res[0] = toupper (res[0]);
+#endif
if (res[0] == '\0')
return savestr ("/");